﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cesave.Domain.PermisosModule.Entities;
using System.Data.Objects;
using Cesave.Infrastructure.Data.Core;

namespace Cesave.Infrastructure.Data.PermisosModule.Mock
{
	public partial class PermisosModuleFakeContext
	{
		static List<Agente> _agentes;

		private void InitiateInnerAgentesCollection()
		{
			if (_agentes == null)
				_agentes = new List<Agente>
				{
					new Agente
					{
						AclGuid = new Guid("E8D72F16-7E61-4493-9C1A-F6BE7A869EBF"),
						AclId = 1,
						AgenteGuid = new Guid("82DB166A-B6A4-458F-B28C-B51F6ABE2715"),
						AgenteId = 2,
						Apellido = "MARTINEZ CASTELO",
						Domicilio = "",
						Email = "saul.martinez05@gmail.com",
						JuntaGuid = new Guid("C9760433-39E5-4FE4-A17E-EDE111734C65"),
						JuntaId = 2,
						Nombre = "SAUL ALEJANDRO",
						PasswordHash = "97F846095961EE10953C57C561259871",
						PasswordSalt = "BDCE960C11439F79DCED24F0FA131781",
						Status = true,
						Telefono = "6621245574",
						Usuario = "SAMACS",
					},
				};
		}

		private IObjectSet<Agente> CreateAgentesObjectSet()
		{
			return _agentes.ToInMemoryObjectSet();
		}

		private void InitiateFakeAgentes()
		{
			AgentesGet = () => CreateAgentesObjectSet();
			CreateObjectSet<Agente>(() => CreateAgentesObjectSet());
		}

	}
}
